<h1>LISTADO DE BOX'S</h1>

<table>
  <thead>
    <tr>
      <th>BOX</th>
      <th>SUCURSAL</th>
      <th>ACCIONES</th>
    </tr>
  </thead>
  
  <tbody>
    <?php foreach ($gestdent_box_list as $gestdent_box): ?>
    <tr>
      <td><?php echo $gestdent_box->getNombre() ?></td>
      <td><?php echo $gestdent_box->getGestdentSucursal()->getNombre() ?></td>
      <td>
          <div id="actions">
            <ul class="action">
                <li class="action_edit">
                    <a href="<?php echo url_for('box/edit?id='.$gestdent_box->getId()) ?>"><?php echo "Modificar" ?></a>
                </li>
                <li class="action_config">
                    <a href="<?php echo url_for('box/edit?id='.$gestdent_box->getId()) ?>"><?php echo "Configurar" ?></a>
                </li>
                <li class="action_delete">
                    <?php echo link_to('Eliminar', 'box/delete?id='.$gestdent_box->getId(), array('method' => 'delete', 'confirm' => '¿Confirmar eliminación de '.$gestdent_box->getNombre().'?')) ?>
                </li>
            </ul>
          </div>
      </td>

    </tr>
    <?php endforeach; ?>
  </tbody>
  
</table>

<!--
<div id="actions">
    <ul class="action">
        <li class="action_new">
            <a class="small button blue" href="<?php echo url_for('box/new') ?>">NUEVO BOX</a>
        </li>
    </ul>
</div>
-->
<div><br>
    <a class="small button blue" href="<?php echo url_for('box/new') ?>">NUEVO BOX</a>
</div>
